package main

import "fmt"

/*
运算符
*/
func main() {
	i := 1 + 2
	fmt.Println(i)

	f := 1 - 2
	fmt.Println(f)

	m := 1 * 2
	fmt.Println(m)

	n := 1 / 2
	fmt.Println(n)

	n1 := 1.0 / 2.0
	fmt.Println(n1)

	k := 1 % 2
	fmt.Println(k)

	fmt.Println("----------------------------------------------")

	a := 2
	a++
	fmt.Println(a)
	a--
	fmt.Println(a)

	fmt.Println("----------------------------------------------")

}
